<template>
    <van-nav-bar
  title="标题"
  left-text="返回"
  left-arrow
  @click-left="onClickLeft"
/>
  <router-view />
  <van-tabbar router v-model="active">
    <van-tabbar-item icon="home-o" to="/home/index">首页</van-tabbar-item>
    <van-tabbar-item icon="search" to="/home/fenlei">分类</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/home/gouwuche"
      >购物车</van-tabbar-item
    >
    <van-tabbar-item icon="setting-o" to="/home/wode">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script setup>
import { ref } from "vue";
const active = ref(0);
</script>

<style lang="scss" scoped>
</style>